<?php
	require_once $_SERVER['DOCUMENT_ROOT'] . '/SAGER/logic/factory/CommandFactory.php';
	
	//Permite eliminar los notices
	error_reporting (E_ALL ^ E_NOTICE);
	
	$debug = $_SESSION['debug'];
	
	class PresenterLogin {
		
		public function __construct() {}
		
		public function clickValidateUser($username, $password) {
			$command = CommandFactory :: createCommandValidateCredential($username, $password);			
			$command -> execute();
			return $command -> getResult();
		}	
	}
?>